Optimal. Leaf size=77 \[ \frac {b}{8 c^2 d^3 (1+c x)^2}-\frac {3 b}{8 c^2 d^3 (1+c x)}-\frac {b \tanh ^{-1}(c x)}{8 c^2 d^3}+\frac {x^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 d^3 (1+c x)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {37, 6083, 12,
90, 213} \begin {gather*} \frac {x^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 d^3 (c x+1)^2}-\frac {3 b}{8 c^2 d^3 (c x+1)}+\frac {b}{8 c^2 d^3 (c x+1)^2}-\frac {b \tanh ^{-1}(c x)}{8 c^2 d^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 37
Rule 90
Rule 213
Rule 6083
Rubi steps
\begin {align*} \int \frac {x \left (a+b \tanh ^{-1}(c x)\right )}{(d+c d x)^3} \, dx &=\frac {x^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 d^3 (1+c x)^2}-(b c) \int \frac {x^2}{2 (1-c x) (d+c d x)^3} \, dx\\ &=\frac {x^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 d^3 (1+c x)^2}-\frac {1}{2} (b c) \int \frac {x^2}{(1-c x) (d+c d x)^3} \, dx\\ &=\frac {x^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 d^3 (1+c x)^2}-\frac {1}{2} (b c) \int \left (\frac {1}{2 c^2 d^3 (1+c x)^3}-\frac {3}{4 c^2 d^3 (1+c x)^2}-\frac {1}{4 c^2 d^3 \left (-1+c^2 x^2\right )}\right ) \, dx\\ &=\frac {b}{8 c^2 d^3 (1+c x)^2}-\frac {3 b}{8 c^2 d^3 (1+c x)}+\frac {x^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 d^3 (1+c x)^2}+\frac {b \int \frac {1}{-1+c^2 x^2} \, dx}{8 c d^3}\\ &=\frac {b}{8 c^2 d^3 (1+c x)^2}-\frac {3 b}{8 c^2 d^3 (1+c x)}-\frac {b \tanh ^{-1}(c x)}{8 c^2 d^3}+\frac {x^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 d^3 (1+c x)^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 99, normalized size = 1.29 \begin {gather*} -\frac {8 a+4 b+16 a c x+6 b c x+8 (b+2 b c x) \tanh ^{-1}(c x)+3 b (1+c x)^2 \log (1-c x)-3 b \log (1+c x)-6 b c x \log (1+c x)-3 b c^2 x^2 \log (1+c x)}{16 c^2 d^3 (1+c x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 114, normalized size = 1.48
method | result | size |
derivativedivides | \(\frac {\frac {a \left (-\frac {1}{c x +1}+\frac {1}{2 \left (c x +1\right )^{2}}\right )}{d^{3}}-\frac {b \arctanh \left (c x \right )}{d^{3} \left (c x +1\right )}+\frac {b \arctanh \left (c x \right )}{2 d^{3} \left (c x +1\right )^{2}}-\frac {3 b \ln \left (c x -1\right )}{16 d^{3}}+\frac {b}{8 d^{3} \left (c x +1\right )^{2}}-\frac {3 b}{8 d^{3} \left (c x +1\right )}+\frac {3 b \ln \left (c x +1\right )}{16 d^{3}}}{c^{2}}\) | \(114\) |
default | \(\frac {\frac {a \left (-\frac {1}{c x +1}+\frac {1}{2 \left (c x +1\right )^{2}}\right )}{d^{3}}-\frac {b \arctanh \left (c x \right )}{d^{3} \left (c x +1\right )}+\frac {b \arctanh \left (c x \right )}{2 d^{3} \left (c x +1\right )^{2}}-\frac {3 b \ln \left (c x -1\right )}{16 d^{3}}+\frac {b}{8 d^{3} \left (c x +1\right )^{2}}-\frac {3 b}{8 d^{3} \left (c x +1\right )}+\frac {3 b \ln \left (c x +1\right )}{16 d^{3}}}{c^{2}}\) | \(114\) |
risch | \(-\frac {b \left (2 c x +1\right ) \ln \left (c x +1\right )}{4 c^{2} d^{3} \left (c x +1\right )^{2}}+\frac {3 b \,c^{2} \ln \left (-c x -1\right ) x^{2}-3 \ln \left (c x -1\right ) b \,c^{2} x^{2}+6 \ln \left (-c x -1\right ) b c x -6 \ln \left (c x -1\right ) b c x +8 b c x \ln \left (-c x +1\right )-16 c x a -6 b c x +3 b \ln \left (-c x -1\right )-3 b \ln \left (c x -1\right )+4 b \ln \left (-c x +1\right )-8 a -4 b}{16 c^{2} d^{3} \left (c x +1\right )^{2}}\) | \(157\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 152 vs.
\(2 (69) = 138\).
time = 0.26, size = 152, normalized size = 1.97 \begin {gather*} -\frac {1}{16} \, {\left (c {\left (\frac {2 \, {\left (3 \, c x + 2\right )}}{c^{5} d^{3} x^{2} + 2 \, c^{4} d^{3} x + c^{3} d^{3}} - \frac {3 \, \log \left (c x + 1\right )}{c^{3} d^{3}} + \frac {3 \, \log \left (c x - 1\right )}{c^{3} d^{3}}\right )} + \frac {8 \, {\left (2 \, c x + 1\right )} \operatorname {artanh}\left (c x\right )}{c^{4} d^{3} x^{2} + 2 \, c^{3} d^{3} x + c^{2} d^{3}}\right )} b - \frac {{\left (2 \, c x + 1\right )} a}{2 \, {\left (c^{4} d^{3} x^{2} + 2 \, c^{3} d^{3} x + c^{2} d^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 84, normalized size = 1.09 \begin {gather*} -\frac {2 \, {\left (8 \, a + 3 \, b\right )} c x - {\left (3 \, b c^{2} x^{2} - 2 \, b c x - b\right )} \log \left (-\frac {c x + 1}{c x - 1}\right ) + 8 \, a + 4 \, b}{16 \, {\left (c^{4} d^{3} x^{2} + 2 \, c^{3} d^{3} x + c^{2} d^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 277 vs.
\(2 (71) = 142\).
time = 0.84, size = 277, normalized size = 3.60 \begin {gather*} \begin {cases} - \frac {8 a c x}{8 c^{4} d^{3} x^{2} + 16 c^{3} d^{3} x + 8 c^{2} d^{3}} - \frac {4 a}{8 c^{4} d^{3} x^{2} + 16 c^{3} d^{3} x + 8 c^{2} d^{3}} + \frac {3 b c^{2} x^{2} \operatorname {atanh}{\left (c x \right )}}{8 c^{4} d^{3} x^{2} + 16 c^{3} d^{3} x + 8 c^{2} d^{3}} - \frac {2 b c x \operatorname {atanh}{\left (c x \right )}}{8 c^{4} d^{3} x^{2} + 16 c^{3} d^{3} x + 8 c^{2} d^{3}} - \frac {3 b c x}{8 c^{4} d^{3} x^{2} + 16 c^{3} d^{3} x + 8 c^{2} d^{3}} - \frac {b \operatorname {atanh}{\left (c x \right )}}{8 c^{4} d^{3} x^{2} + 16 c^{3} d^{3} x + 8 c^{2} d^{3}} - \frac {2 b}{8 c^{4} d^{3} x^{2} + 16 c^{3} d^{3} x + 8 c^{2} d^{3}} & \text {for}\: c \neq 0 \\\frac {a x^{2}}{2 d^{3}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 114, normalized size = 1.48 \begin {gather*} \frac {1}{32} \, c {\left (\frac {2 \, {\left (c x - 1\right )}^{2} {\left (\frac {2 \, {\left (c x + 1\right )} b}{c x - 1} + b\right )} \log \left (-\frac {c x + 1}{c x - 1}\right )}{{\left (c x + 1\right )}^{2} c^{3} d^{3}} + \frac {{\left (c x - 1\right )}^{2} {\left (\frac {8 \, {\left (c x + 1\right )} a}{c x - 1} + 4 \, a + \frac {4 \, {\left (c x + 1\right )} b}{c x - 1} + b\right )}}{{\left (c x + 1\right )}^{2} c^{3} d^{3}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.27, size = 81, normalized size = 1.05 \begin {gather*} \frac {c\,\left (b\,x-2\,b\,x\,\mathrm {atanh}\left (c\,x\right )\right )-b\,\mathrm {atanh}\left (c\,x\right )+c^2\,\left (4\,a\,x^2+2\,b\,x^2+3\,b\,x^2\,\mathrm {atanh}\left (c\,x\right )\right )}{8\,c^4\,d^3\,x^2+16\,c^3\,d^3\,x+8\,c^2\,d^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________